<?php	
if($user->access==2){
?>
<!-- Gestion des users -->
<div id="gestion_add_user">
	<form action="indexpopup.php?page=admin_add_user" method="post">
		<table>
		<caption>Add a user</caption>
		<tr>
			<td>login* :</td><td><input type="text" name="user_login" /></td>
		</tr>
		<tr>
			<td>email* :</td><td><input type="text" name="user_email" /></td>
		</tr>
		<tr>
			<td>password* :</td><td><input type="password" name="user_password" /></td>
		</tr>
		<tr>
			<td>access* :</td>
			<td><select name="user_access">
				<option value="2"  >Admin</option>
				<option value="1"  selected="selected" >User</option>
				<option value="0" >Bloked</option>
			</select></td>
		</tr>
		<tr>
			<td></td>
			<td>
				<input type="hidden" name="hidden" value="add_user" />
				<input type="submit" value="add" />
				<input type="button" value="exit" onclick="reload_page('admin');" />
			</td>
		</tr>
		</table>
	</form>
</div>
<!-- Fin de Gestion des users -->
<?php	
}
?>